<template>
<!--返现佣金-->
  <div class="container">
    <div class="header">
     <div>
       <div class="title">立即加入分行者跟单社区经纪人计划</div>
       <div class="detail">邀请好友注册并开户绑定MT4/MT5，获取高额佣金回报。</div>
       <div class="copy" style="height: 60px;width: 500px;">
         <i class="item el-icon-paperclip" style="font-size: 16px;"></i>
         <span class="item" style="font-size: 13px;">{{copy}}</span>
         <span class="copy-item" @click.stop="onCopyClick(copy)" style="font-size: 13px;">复制</span>
       </div>
     </div>
      <div class="header-img">
        <img :src="active.icon" alt="">
      </div>
    </div>
    <div class="content">
      <div class="message">详询客服</div>
      <div class="more">
        <div>加入我们，开始赚取更多高额回报！</div>
        <div class="login">登录代理后台</div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'commissionIndex',
  data () {
    return {
      active: {
        icon: require('@/assets/img/cube.png')
      },
      copy: 'http://43.139.121.71:81/#/pages/login/reg/reg?inviteCode=10938'
    }
  },
  methods: {
    onCopyClick (context) {
      navigator.clipboard.writeText(context)
        .then(() => {
          this.$message.success('复制成功')
        })
        .catch(err => {
          this.$message.error('复制失败')
        })
    }
  }
}
</script>

<style scoped lang="scss">
.container {
  .header {
    height: 100%;
    height: 550px;
    background-color: #002748;
    color: #ffffff;
    padding: 110px 150px 30px 240px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    .title {
      font-size: 45px;
      width: 400px;
      margin-top: -50px;
    }
    .detail {
      font-size: 15px;
      color: lightgray;
      margin-top: 40px;
      margin-bottom: 90px;
    }
    .header-img {
      img {
        width: 280px;
        height: 249px;
        margin-top: -20px;
      }
    }
  }
}
.copy {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 15px 10px;
  border-radius: 5px;
  color: #333333;
  
}
.item {
  margin-right: 10px;
}
.copy-item {
  color: #5a82e6;
}
.content {
  height: 400px;
  .message {
    font-size: 16px;
    margin: 0 auto;
    margin-top: 15px;
    //margin-left: 150px;
    width: 1300px;
    text-align: left;
    margin-bottom: 100px;
  }
  .more {
    width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px;
    background: #2d60e0;
    color: #ffffff;
    font-size: 18px;
    font-weight: unset;
    //margin: 40px 250px;
    border-radius: 5px;
    margin-bottom: 200px;

  }
  .login {
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    color: #333333;
  }
}
</style>
